package fr.epsi.dataaccess.dao;
import java.util.List;
import fr.epsi.dataaccess.model.Brand;

public interface BrandDao {
	
	/**
	 * get the brand in the database by the id
	 * @param id
	 * @return the Brand
	 */
	public abstract Brand getBrand(int id);
	
	/**
	 * delete the brand in the database
	 * @param brand
	 */
	public abstract void deleteBrand(Brand brand);
	
	/**
	 * update the brand in the database
	 * @param brand
	 */
	public abstract void updateBrand(Brand brand);
	
	/**
	 * insert a brand in the database
	 * @param brand
	 */
	public abstract void insertBrand(Brand brand);
	
	/**
	 * get the list of brands in the database
	 * @param id
	 * @return list of brands
	 */
	public abstract List getBrands();
}
